Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Shibu 4 posts 24 karma points
    Feb 22, 2015 @ 15:47
    Shibu
    0

    Adding product to Basket [uCommerce & Sitecore]

    I was trying to add a product to basket below is snippet of code which I have written

     

    Get a product

    var productItem = UCommerce.EntitiesV2.Product.SingleOrDefault(x => x.ProductId == 105);

    Adding to Basket

    TransactionLibrary.AddToBasket(quantity, productItem.Sku);

    TransactionLibrary.ExecuteBasketPipeline();

    But I am getting an exception that

    System.ArgumentException: The product with SKU '5159803' does not exist

    But db it is present and and I am not able to find the solution of it.


    Please reply what I am doing wrong over here

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 22, 2015 @ 16:37
    Jan Skovgaard
    0

    Hi Shibu

    If you're using uCommerce with Sitecore then you probably need to ask this question in a Sitecore related forum since this is all about uCommerce and Umbraco :)

    Cheers, Jan

Please Sign in or register to post replies

Write your reply to:

Draft